OpenShadingLanguage 1.00
# Compiled by oslc 1.10.10
# options: -q -O2 -I/home/sources/buildbot-worker-linux_centos7/linux_290/blender.git/intern/cycles/kernel/shaders -I/home/sources/buildbot-worker-linux_centos7/linux_290/lib/linux_centos7_x86_64/osl/shaders -o /home/sources/buildbot-worker-linux_centos7/linux_290/build/intern/cycles/kernel/shaders/node_displacement.oso
shader node_displacement
param	string	space	"object"		%read{2,10} %write{2147483647,-1}
param	float	Height	0		%read{7,7} %write{2147483647,-1}
param	float	Midlevel	0.5		%read{7,7} %write{2147483647,-1}
param	float	Scale	1		%read{9,9} %write{2147483647,-1}
param	normal	Normal	0 0 0		%read{1,1} %write{0,0} %initexpr
oparam	vector	Displacement	0 0 0		%read{5,12} %write{1,12}
global	normal	N	%read{0,0} %write{2147483647,-1}
const	string	$const1	"object"		%read{2,12} %write{2147483647,-1}
temp	int	$tmp1	%read{3,3} %write{2,2}
const	string	$const2	"transform"		%read{4,4} %write{2147483647,-1}
const	string	$const3	"common"		%read{5,5} %write{2147483647,-1}
temp	vector	$tmp2	%read{8,8} %write{6,6}
temp	float	$tmp3	%read{8,8} %write{7,7}
temp	vector	$tmp4	%read{9,9} %write{8,8}
temp	int	$tmp5	%read{11,11} %write{10,10}
const	string	$const4	"world"		%read{12,12} %write{2147483647,-1}
code Normal
# /home/sources/buildbot-worker-linux_centos7/linux_290/blender.git/intern/cycles/kernel/shaders/node_displacement.osl:23
#                          normal Normal = N,
	assign		Normal N 	%filename{"/home/sources/buildbot-worker-linux_centos7/linux_290/blender.git/intern/cycles/kernel/shaders/node_displacement.osl"} %line{23} %argrw{"wr"}
code ___main___
# /home/sources/buildbot-worker-linux_centos7/linux_290/blender.git/intern/cycles/kernel/shaders/node_displacement.osl:26
#   Displacement = Normal;
	assign		Displacement Normal 	%filename{"/home/sources/buildbot-worker-linux_centos7/linux_290/blender.git/intern/cycles/kernel/shaders/node_displacement.osl"} %line{26} %argrw{"wr"}
# /home/sources/buildbot-worker-linux_centos7/linux_290/blender.git/intern/cycles/kernel/shaders/node_displacement.osl:27
#   if (space == "object") {
	eq		$tmp1 space $const1 	%line{27} %argrw{"wrr"}
	if		$tmp1 6 6 	%argrw{"r"}
# /home/sources/buildbot-worker-linux_centos7/linux_290/blender.git/intern/cycles/kernel/shaders/node_displacement.osl:28
#     Displacement = transform("object", Displacement);
	functioncall	$const2 6 	%line{28} %argrw{"r"}
# /home/sources/buildbot-worker-linux_centos7/linux_290/lib/linux_centos7_x86_64/osl/shaders/stdosl.h:284
# vector transform (string to, vector p) { return transform("common",to,p); }
	transformv	Displacement $const3 $const1 Displacement 	%filename{"/home/sources/buildbot-worker-linux_centos7/linux_290/lib/linux_centos7_x86_64/osl/shaders/stdosl.h"} %line{284} %argrw{"wrrr"}
# /home/sources/buildbot-worker-linux_centos7/linux_290/blender.git/intern/cycles/kernel/shaders/node_displacement.osl:31
#   Displacement = normalize(Displacement) * (Height - Midlevel) * Scale;
	normalize	$tmp2 Displacement 	%filename{"/home/sources/buildbot-worker-linux_centos7/linux_290/blender.git/intern/cycles/kernel/shaders/node_displacement.osl"} %line{31} %argrw{"wr"}
	sub		$tmp3 Height Midlevel 	%argrw{"wrr"}
	mul		$tmp4 $tmp2 $tmp3 	%argrw{"wrr"}
	mul		Displacement $tmp4 Scale 	%argrw{"wrr"}
# /home/sources/buildbot-worker-linux_centos7/linux_290/blender.git/intern/cycles/kernel/shaders/node_displacement.osl:33
#   if (space == "object") {
	eq		$tmp5 space $const1 	%line{33} %argrw{"wrr"}
	if		$tmp5 13 13 	%argrw{"r"}
# /home/sources/buildbot-worker-linux_centos7/linux_290/blender.git/intern/cycles/kernel/shaders/node_displacement.osl:34
#     Displacement = transform("object", "world", Displacement);
	transformv	Displacement $const1 $const4 Displacement 	%line{34} %argrw{"wrrr"}
	end
